/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * frmTimKiemPhieuNhap.java
 *
 * Created on Aug 30, 2012, 1:29:43 PM
 */
package gui;

/**
 *
 * @author dtth
 */
public class frmTimKiemPhieuNhap extends javax.swing.JFrame {

    /** Creates new form frmTimKiemPhieuNhap */
    public frmTimKiemPhieuNhap() {
        initComponents();
        this.setSize(810, 550);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jTextField3 = new javax.swing.JTextField();
        jTextField4 = new javax.swing.JTextField();
        jPanel3 = new javax.swing.JPanel();
        jDateChooser3 = new com.toedter.calendar.JDateChooser();
        jDateChooser4 = new com.toedter.calendar.JDateChooser();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jbtnDong = new javax.swing.JButton();
        jbtnTimKiem = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        getContentPane().setLayout(null);

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14));
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setText("TÌM KIẾM PHIẾU NHẬP");
        getContentPane().add(jLabel1);
        jLabel1.setBounds(10, 10, 780, 17);

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Tìm theo tên nhân viên và Mã phiếu nhập"));
        jPanel2.setLayout(null);

        jLabel2.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel2.setText("Tên NV:");
        jLabel2.setToolTipText("");
        jPanel2.add(jLabel2);
        jLabel2.setBounds(10, 70, 50, 15);

        jLabel7.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel7.setText("Mã phiếu:");
        jPanel2.add(jLabel7);
        jLabel7.setBounds(10, 30, 70, 15);

        jTextField3.setFont(new java.awt.Font("Tahoma", 0, 12));
        jPanel2.add(jTextField3);
        jTextField3.setBounds(70, 20, 230, 30);
        jPanel2.add(jTextField4);
        jTextField4.setBounds(70, 60, 230, 30);

        getContentPane().add(jPanel2);
        jPanel2.setBounds(10, 40, 310, 100);

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Tìm theo ngày"));
        jPanel3.setLayout(null);

        jDateChooser3.setDateFormatString("dd/MM/yyyy");
        jPanel3.add(jDateChooser3);
        jDateChooser3.setBounds(120, 20, 220, 30);

        jDateChooser4.setDateFormatString("dd/MM/yyyy");
        jPanel3.add(jDateChooser4);
        jDateChooser4.setBounds(120, 60, 220, 30);

        jLabel8.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel8.setText("Đến ngày");
        jPanel3.add(jLabel8);
        jLabel8.setBounds(20, 70, 60, 15);

        jLabel9.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel9.setText("Từ ngày");
        jPanel3.add(jLabel9);
        jLabel9.setBounds(20, 30, 60, 15);

        getContentPane().add(jPanel3);
        jPanel3.setBounds(320, 40, 350, 100);

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Kết quả tìm kiếm"));
        jPanel1.setLayout(null);

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(jTable1);

        jPanel1.add(jScrollPane1);
        jScrollPane1.setBounds(10, 20, 760, 270);

        getContentPane().add(jPanel1);
        jPanel1.setBounds(10, 150, 780, 300);

        jbtnDong.setFont(new java.awt.Font("Tahoma", 0, 12));
        jbtnDong.setText("Đóng");
        jbtnDong.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnDongActionPerformed(evt);
            }
        });
        getContentPane().add(jbtnDong);
        jbtnDong.setBounds(640, 450, 150, 50);

        jbtnTimKiem.setFont(new java.awt.Font("Tahoma", 0, 12));
        jbtnTimKiem.setText("Tìm");
        jbtnTimKiem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnTimKiemActionPerformed(evt);
            }
        });
        getContentPane().add(jbtnTimKiem);
        jbtnTimKiem.setBounds(670, 90, 110, 50);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jbtnTimKiemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnTimKiemActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jbtnTimKiemActionPerformed

    private void jbtnDongActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnDongActionPerformed
        // TODO add your handling code here:
        this.dispose();
    }//GEN-LAST:event_jbtnDongActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(frmTimKiemPhieuNhap.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(frmTimKiemPhieuNhap.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(frmTimKiemPhieuNhap.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(frmTimKiemPhieuNhap.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new frmTimKiemPhieuNhap().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private com.toedter.calendar.JDateChooser jDateChooser3;
    private com.toedter.calendar.JDateChooser jDateChooser4;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTable jTable1;
    private javax.swing.JTextField jTextField3;
    private javax.swing.JTextField jTextField4;
    private javax.swing.JButton jbtnDong;
    private javax.swing.JButton jbtnTimKiem;
    // End of variables declaration//GEN-END:variables
}
